package com.cmdi.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.cmdi.domain.StuStudent;
import com.cmdi.mapper.StuStudentMapper;
import com.cmdi.service.StuStudentService;

@Service
public class StuStudentServiceImpl implements StuStudentService {

    @Resource
    private StuStudentMapper stuStudentMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return stuStudentMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(StuStudent record) {
        return stuStudentMapper.insert(record);
    }

    @Override
    public int insertSelective(StuStudent record) {
        return stuStudentMapper.insertSelective(record);
    }

    @Override
    public StuStudent selectByPrimaryKey(Integer id) {
        return stuStudentMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(StuStudent record) {
        return stuStudentMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(StuStudent record) {
        return stuStudentMapper.updateByPrimaryKey(record);
    }

}

